<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/head.jsp"%>
<div class="bjui-pageContent">
	<form action="${ctx}/sys/add${actionclass}.do" id="j_custom_form" data-toggle="ajaxform">
		<div class="bjui-row col-2">
			<label class="row-label">项目分类</label>
			<div class="row-input">
				<select name="itemId" id="QuesItemList_item" data-toggle="selectpicker" data-rule="required" data-width="300">
					<c:forEach items="${list }" var="item">
						<option value="${item.id }">${item.ques.name}-${item.name }</option>
					</c:forEach>
				</select>
			</div>
			<br />

			<label class="row-label">题目</label>
			<div class="row-input">
				<input type="text" name="question" id="QuesItemList_question" value="${modifybean.question}" data-rule="required"
					size="80">
			</div>
			<br />

			<label class="row-label">题型</label>
			<div class="row-input">
				<select name="typesel" id="QuesItemList_typesel" data-toggle="selectpicker" data-rule="required" data-width="300">
					<option value="单选">单选</option>
					<option value="多选">多选</option>
					<option value="填空">填空</option>
					<option value="文本">文本</option>
				</select>
			</div>
			<br />
			<label class="row-label">格式验证</label>
			<div class="row-input">
				<select name="gs" id="QuesItemList_gs" data-toggle="selectpicker" data-rule="" data-width="300">
					<option value="">不限</option>
					<option value="number">数值</option>
					<option value="date">日期</option>
					<option value="email">电子邮箱</option>
					<option value="cn">中文</option>
					<option value="en">英文</option>
					<option value="url">网址</option>
					<option value="idcard">身份证</option>
					<option value="phone">手机号码</option>
				</select>
			</div>
			<br />

			<label class="row-label">字数限制</label>
			<div class="row-input">
				<input type="text" name="zi" id="QuesItemList_zi" value="" data-rule="digits;range[0~500]" size=20>
			</div>
			<br />


		</div>
	</form>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li>
			<button type="button" class="btn-close" data-icon="close">取消</button>
		</li>
		<li>
			<button type="submit" class="btn-default" data-icon="save">保存</button>
		</li>
	</ul>
</div>
